<?php

namespace app\api\model;

use think\Model;

/**
 * 巡检日志表
 */
class PatrolLog extends Model
{
    protected  $name = 'patrol_log';


    public function add($patrol_id, $content){
        $this->db()->insert([
            'patrol_id' => $patrol_id,
            'content' => $content,
            'createtime' => date('Y-m-d H:i:s')
        ]);
    }
}